ipv6 address space
2022-04-24 ยท 3 min read
See: IANA > Internet Protocol Version 6 Address Space
See: IANA > IPv6 Special-Purpose Address Registry
| prefix | name | RFCS |
|---|---|---|
| 0000::/8 | Reserved | |
| -> ::1/128 | Loopback | RFC4291 |
| -> ::/128 | Bind to unspecified interface | RFC4291 |
| -> ::ffff:0:0/96 | IPv4-mapped addresses | RFC4291 |
| -> 64:ff9b::/96 | Algorithmic IPv4/IPv6 translation prefix | RFC6052 |
| -> 64:ff9b:1::/48 | Local-use IPv4/IPv6 translation prefix | RFC8215 |
| 0100::/8 | Discard-only Block | RFC6666 |
| 2000::/3 | Global Unicast | RFC4291 |
| -> 2001::/32 | TEREDO - tunnel IPv6 over UDP through NATs | RFC4380 |
| -> 2001:1::1/128 | Port Control Protocol (PCP) static Anycast | RFC7723 |
| -> 2001:1::2/128 | TURN static Anycast | RFC8155 |
| -> 2001:2::/48 | Reserved for benchmarking | RFC5180 |
| -> 2001:3::/32 | Automatic Multicast Tunneling (AMT) | RFC7450 |
| -> 2001:20::/28 | Overlay Routable Cryptographic Hash Ids (ORCHIDv2) | RFC7343 |
| -> 2001:db8::/32 | Documentation/example only address | RFC3849 |
| -> 2002::/16 | 6to4 tunneling | RFC3056 |
| f000::/5 | Reserved | |
| f800::/6 | Reserved | |
| fc00::/7 | Unique-Local Unicast | RFC4193 |
| fe00::/9 | Reserved | |
| fe80::/10 | Link-Local Unicast | RFC4291 |
| ff00::/8 | Multicast | RFC4291 |
unique-local unicast address (ULA) #
- look for IPs starting with
fd00::/8asfc00::/8is not currently allocated - globally unique (statistically), but not globally routable.
- the "Global ID" is supposed to be randomly sampled. My home router samples one on initial setup.
- people usually use these like ipv4 private address ranges (10.0.0.0/8, 172.16.0.0/16, 192.168.0.0/24)
ex #
| kind | CIDR |
|---|---|
| prefix | fd6c:6578:6502::/48 |
| subnet | fd6c:6578:6502::/64 |
| address | fd6c:6578:6502::85a/128 |
format #
| 7 bits |1| 40 bits | 16 bits | 64 bits |
+--------+-+------------+-----------+----------------------------+
| Prefix |L| Global ID | Subnet ID | Interface ID |
+--------+-+------------+-----------+----------------------------+
fdGG:GGGG:GGGG:ssss::/64
link-local unicast #
fe80::/64- ex:
fe80::6238:e0ff:febc:3f60/128 - address endpoints localized to a single link. Not globally routable.
- routers will refuse to forward packets w/ link-local source to other links.
- ex: all computers connected to a switch or wireless network or bridge can send link-local packets to each other, but can't send across routers.
- used in protocols like IPv6 Stateless Address Configuration (SLAAC), where you don't really care what address each host gets as long as it's unique and routable. Compare w/ DHCP which gives tighter control over address allocation.
format #
| 10 |
| bits | 54 bits | 64 bits |
+----------+-------------------------+----------------------------+
|1111111010| 0 | interface ID |
+----------+-------------------------+----------------------------+